/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.munchkinquest.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author stephen
 */
@ManagedBean
@SessionScoped
public class CombatCounter {

    protected int playerTot = 0;
    protected int monsterTot = 0;

    public void doIncPlayerTot() {
        ++playerTot;
    }

    public void doDecPlayerTot() {
        if (playerTot > 0) --playerTot;
    }

    public void doIncMonsterTot() {
        ++monsterTot;
    }

    public void doDecMonsterTot() {
        if (monsterTot > 0) --monsterTot;
    }

    public int getMonsterTot() {
        return monsterTot;
    }

    public void setMonsterTot(int monsterTot) {
        this.monsterTot = monsterTot;
    }


    public int getPlayerTot() {
        return playerTot;
    }

    public void setPlayerTot(int playerTot) {
        this.playerTot = playerTot;
    }


}
